package com.lihan.services;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lihan.common.PageResponse;
import com.lihan.common.Result;
import com.lihan.model.dto.MomentFormDTO;
import com.lihan.model.entity.FriendCircle;
import com.lihan.model.vo.MomentVo;

/**
 * ClassName: IMomentService
 * Package: com.lihan.services.impl
 * Description:
 *
 * @Author 李涵
 * @Create 2025-05-08 14:58
 * @Version 1.0
 */
public interface IMomentService extends IService<FriendCircle> {
    /***
     * @description 保存朋友圈到数据库
     * @param form 前端提交的朋友圈数据
     * @return
     */
    Result saveMoment(MomentFormDTO form);

    PageResponse<MomentVo> getMoments(String userId, Long page, Long size);
}
